package com.fagertveit.android.game.cb;

import com.fagertveit.android.game.framework.geom.AABB;
import com.fagertveit.android.game.framework.geom.Vector2;

public class RectangularBrick extends Brick {
	private AABB shape;

	public RectangularBrick(int health, int type, int score, float x, float y, float width, float height) {
		super(health, type, score);
		this.shape = new AABB(x + width/2, y + height/2, width/2, height/2);
	}
	
	public AABB getShape() {
		return shape;
	}
	
	public float getDrawX() {
		return shape.pos.x - shape.width;
	}
	
	public float getDrawY() {
		return shape.pos.y - shape.height;
	}
	
	public float getWidth() {
		return shape.width * 2;
	}
	
	public float getHeight() {
		return shape.height * 2;
	}
}
